#!/bin/bash
currentPath=$(pwd)

libPath=$(pwd)/../libosip2-5.1.1

if [ -d "./libosip" ]; then
    rm -rf libosip
fi
mkdir libosip
cd libosip
installPath=$(pwd)

cd ${libPath}
./configure --prefix=${installPath}
make
make install
cd ${currentPath}

# 执行make时遇到问题，找了篇帖子解决了，原因不详细  // TODO 研究
# aclocal-1.14: command not found
# autoreconf -ivf   